cordova.define("bsl.cordova.plugins.message.message", function(require, exports, module) {
               
               
               
               var exec = require('cordova/exec');
               var cordova = require('cordova');
               var utils = require('cordova/utils');
               
               
               
               var Message = {
               description: "消息发送",
               
               sendMessage : function ( success,fail,option) {
               
               cordova.exec(success,fail,
                            "MessagePlug", "sendMessage",
                            [{to:option.to,body:option.body}]);
               
               },
               sendEmail : function (successCB, error, option) {
               
               cordova.exec(successCB,error,
                            "MessagePlug","sendEmail",
                            [{subject:option.subject,bodyType:option.bodyType,body:option.body,to:option.to,cc:option.cc,bcc:option.bcc,attach:option.attach}]);
               
               },
               setEmailSenderInfo:function (successCB, error, option) {
               
               cordova.exec(successCB,error,
                            "MessagePlug","setEmailSenderInfo",
                            [{senderEmailAcount:option.senderEmailAcount,senderEmailPassword:option.senderEmailPassword,senderEmailServer:option.senderEmailServer,senderEmailPort:option.senderEmailPort}]);
               
               },

               }
                              //function install() {
               //    if (!window.plugins) {
               //        window.plugins = {};
               //    }
               //
               //    window.plugins.downloadManager =  downloadManager;
               //    return window.plugins.downloadManager;
               //}
               
               module.exports = Message;
               
               //cordova.addConstructor(install);
               
               
               });

